<?php
	// path constants

	define("AERIAL_BASE_PATH", realpath(dirname(__FILE__)));						// Aerial base path 
	define("AERIAL_INTERNAL", realpath(AERIAL_BASE_PATH."/aerial"));				// Internal path for core functionality
	define("AERIAL_EXTERNAL", realpath(AERIAL_BASE_PATH."/.."));					// Path outside of aerial core
	define("DOCTRINE_PATH", realpath(AERIAL_BASE_PATH. "/doctrine"));				// Path to Doctrine library
	define("AMFPHP_PATH", realpath(AERIAL_BASE_PATH."/amfphp"));					// Path to AMFPHP library
	
	define("BACKEND_PATH", AERIAL_EXTERNAL."/../backend");							// Path to project development backend
	define("FRONTEND_PATH", AERIAL_EXTERNAL."/../frontend/src");					// Path to project development fronend
	
	// models & services
	
	define("INTERNAL_SERVICES_PATH", AERIAL_EXTERNAL."/services");					// Path to internal services
	define("BACKEND_SERVICES_PATH", BACKEND_PATH."/services");						// Path to generated backend services
	define("BACKEND_MODELS_PATH", BACKEND_PATH."/models");							// Path to generated backend models
	define("FRONTEND_MODELS_PACKAGE", "models");									// ActionScript package for generated models
	define("FRONTEND_MODELS_PATH", FRONTEND_PATH."/models");						// Path to generated frontend models
	define("FRONTEND_SERVICES_PACKAGE", "services");								// ActionScript package for generated services
	define("FRONTEND_SERVICES_PATH", FRONTEND_PATH."/services");					// Path to generated frontend services

	// connection constants

	define("DB_ENGINE", "mysql");													// Database engine type
	define("DB_NAME", "");															// Database name
	define("DB_HOST", "localhost");													// Database host
	define("DB_USER", "");															// Database user
	define("DB_PASSWORD", "");														// Database password
	define("CONNECTION_NAME", "doctrine");											// Connection name (internal feature)
	
	require_once(AERIAL_BASE_PATH."/Bootstrapper.php");
	Bootstrapper::getInstance();
?>